<?php

return [
    'address' => [
        'rule' => [
            'province' => 'require',
            'city'     => 'require',
            'area'     => 'require',
            'address'  => 'require',
            'name'     => 'require',
            'mobile'   => 'require|regex:/^[1]([3-9])[0-9]{9}$/',
        ],
        'msg'  => [
            'province.require' => '省不能为空',
            'city.require'     => '市不能为空',
            'area.require'     => '区不能为空',
            'address.require'  => '详细地址不能为空',
            'name.require'     => '姓名不能为空',
            'mobile.require'   => '电话不能为空',
            'mobile.regex'     => '手机号格式不正确',
        ],

    ],
    'home'    => [
        'rule' => [
            'type' => 'require',
        ],
        'msg'  => [
            'type.require' => '类型不能为空',
        ],

    ],

    'bet'     => [
        'rule' => [
            'bat_id'     => 'require|number',
            'bet_num'    => 'require|number',
            'type'       => 'require', // 0猜胜负，1让球，2比大小
            'guess_type' => 'require',
        ],
        'msg'  => [
            'bat_id.require'     => '对战id不能为空',
            'bat_id.number'      => '对战id必须是数字',
            'bet_num.require'    => '投注数不能为空',
            'bet_num.number'     => '投注数必须是整数',
            'type.require'       => '类型不能为空', // 0猜胜负，1让球，2比大小
            'guess_type.require' => '项目类型不能为空', //0主胜，1平，2客胜
        ],

    ],
    'id' => [
        'rule' => [
            'id' => 'require',
        ],
        'msg'  => [
            'id.require' => 'id不能为空',
        ],
    ],
    'type' => [
        'rule' => [
            'type' => 'require',
        ],
        'msg'  => [
            'type.require' => '类型不能为空',
        ],
    ],
];